| Conditions | 3 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | export interface ReTweetableInterface { |
||
| 17 | |||
| 18 | isReTweetable(): boolean { |
||
| 19 | 25 | const validations = this.getRetweetValidations(); |
|
| 20 | |||
| 21 | 25 | for (const validation of validations) { |
|
| 22 | 114 | if (validation.validate()) { |
|
| 23 | 16 | this.retweetError = validation.message(); |
|
| 24 | 16 | return false; |
|
| 25 | } |
||
| 26 | } |
||
| 27 | |||
| 28 | 9 | return true; |
|
| 29 | } |
||
| 31 |